package com.test;

import com.aop.UserServices;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class GetAop {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("Application.xml");
                                            //必须填接口
        UserServices bean = context.getBean(UserServices.class);
        bean.add();
    }
}
